<%@taglib uri="/struts-tags" prefix="s"%>
<ul class="breadcrumb">    
    <li class="active"><b>//nameClass_plural//</b></li>
    <li style="float:right;margin-top: -5px;">
        <a class="btn" type="button" href="<s:url action="add" ></s:url>"><i class="icon-plus"></i>Add //nameClass_plural//</a>
    </li>
</ul>

<div class="bs-box">
    <div class="autoscroll">
        <table class="table table-bordered table-striped">
            <thead>
                <tr>
                    <th>ID</th>//th_attrs//<th></th>
                </tr>
            </thead>
            <tbody>
                <s:if test="//nameclass_plural//.size() > 0">
                    <s:iterator value="%{//nameclass_plural//}" status="rowstatus">                        
                                <td><s:property value="id" /></td>                                
//td_attrs//
                                <td>
                                    <a href="<s:url action="view" ><s:param name="id" value="%{id}"></s:param></s:url>"><i class="icon-th-large"></i>View</a>
                                    <a  href="<s:url action="edit" ><s:param name="id" value="%{id}"></s:param></s:url>"><i class="icon-edit"></i>Edit</a>
                                    <a  onclick="return confirm('Are you sure you want to delete this record')" href="<s:url action="delete" ><s:param name="id" value="%{id}"></s:param></s:url>"><i class="icon-remove"></i>Delete</a>
                            </tr>
                    </s:iterator>
                </s:if>
            </tbody>  
        </table>
    </div>
    <div class="pagination">
        <ul>
        <s:iterator  id="psg" value="pagination">
            <s:if test="#psg.selected == 'true'">
                <li class="active"><a href="<s:url action="index" ><s:param name="page_number" value="%{name}"></s:param></s:url>"><s:property value="name" /></li>
            </s:if>
            <s:else>
                <li class="disabled"><a href="<s:url action="index" ><s:param name="page_number" value="%{name}"></s:param></s:url>"><s:property value="name" /></li>
            </s:else>
        </s:iterator>
        </ul>
    </div>
</div>